#include "findLengthOfLCIS.h"
int findLengthOfLCIS(vector<int> &nums) {
  int size = nums.size();
  if (size == 0)
    return 0;
  else {
    int res = 1;
    int maxValue = res;
    int start = 0;
    int end = start + 1;
    while (end < size) {
      if (nums[end] > nums[start]) {
        start = end;
        end += 1;
        maxValue += 1;
      } else {
        start = end;
        maxValue = 1;
        end += 1;
      }
      if (maxValue > res) res = maxValue;
    }
    return res;
  }
}